package com.wltt.product.ahuthr.mapper;

import com.wltt.product.ahuthr.mapper.base.BaseMapper;
import com.wltt.product.ahuthr.model.bo.FlowRecordWithSystemNodeBO;
import com.wltt.product.ahuthr.model.po.FlowRecordPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @ClassName: FlowRecordPO
 * @Description: Dao
 * @Date: 2024-09-05 14:58:41
 * @Author yanggl
 */
public interface FlowRecordMapper extends BaseMapper<FlowRecordPO, Long> {

    /**
     * 根据流程id查询记录
     *
     * @param flowId
     * @return
     */
    List<FlowRecordPO> queryByFlowId(@Param("flowId") Long flowId);

    /**
     * 根据流程id查询记录
     *
     * @param flowId
     * @return
     */
    List<FlowRecordWithSystemNodeBO> queryFlowRecordWithSystemNodeByFlowId(@Param("flowId") Long flowId);
}